const { defineConfig } = require('@vue/cli-service')
module.exports = defineConfig({
  transpileDependencies: true,
  chainWebpack: config => {
    config
      .plugin('html')
      .tap(args => {
        args[0].title = "忘月的博客";
        return args
      })
  },


  devServer: {

    // Paths
    // assetsSubDirectory: 'static',
    // assetsPublicPath: '/',
    proxy: {
      '/api': {
        target: 'https://127.0.0.1:3000',
        // target: 'https://120.78.150.149:8889',
        changeOrigin: true,
        pathRewrite: {
          '^/api': ''
        }
      }
    }
  }


})
